package dongshi.daddy.main;

import dongshi.daddy.service.scoperemote.ScopeRemoteService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ConsumerWithScopeRemoteMain {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context
                = new ClassPathXmlApplicationContext("consumer-with-scoperemote.xml");
        context.start();
        ScopeRemoteService scopeRemoteService = (ScopeRemoteService) context.getBean("myConsumerSideScopeRemoteService");
        System.err.println(scopeRemoteService.sayHi("helloooooo"));
    }
}


